export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', name: 'login', component: './User/Login' },
      { path: '/user/register', name: 'register', component: './User/Register' },
      {
        component: '404',
      },
    ],
  },
  // app
  {
    path: '/',
    component: '../layouts/BasicLayout',
    Routes: ['src/pages/Authorized'],
    routes: [
      // dashboard
      //{ path: '/', redirect: '/dashboard/analysis', authority: ['ROLE_ADMIN', 'ROLE_USER'] },
      { path: '/', redirect: '/dashboard/analysis'},
      {
        path: '/dashboard',
        name: 'dashboard',
        icon: 'dashboard',
        routes: [
          {
            path: '/dashboard/analysis',
            name: 'analysis',
            hideInMenu: true,
            component: './Dashboard/Analysis',
          },
		  {
		    path: '/dashboard/statisticanalysis',
		    name: 'statisticanalysis',
		    component: './statistic_chart/StatisticAnalysis',
		  },
		  {
			path: '/dashboard/policestatistic',
			name: 'policestatistic',
			component: './police_statisticchart/StatisticAnalysis',
		  },
		  {
			  path: '/dashboard/intellectanalysis',
			  name: 'intellectanalysis',
			  routes: [
			    {
			      path: '/dashboard/intellectanalysis/policedraw',
			      name: 'policedraw',
			      component: './police_draw/ProPoliceDrawList',
			    },
			    {
			      path: '/dashboard/intellectanalysis/leaderdraw',
			      name: 'leaderdraw',
			      component: './leader_draw/ProLeaderDrawList',
			    },
			    {
			      path: '/dashboard/intellectanalysis/publicpolicedraw',
			      name: 'publicpolicedraw',
			      component: './publicpolice_draw/ProPublicPoliceList',
			    },
			  ],
			},
        ],
      },
      {
        name: 'account',
        icon: 'user',
        path: '/account',
        hideInMenu: true,
        routes: [
          {
            path: '/account/center',
            name: 'center',
            component: './Account/Center/Center',
            routes: [
              {
                path: '/account/center',
                redirect: '/account/center/articles',
              },
              {
                path: '/account/center/articles',
                component: './Account/Center/Articles',
              },
              {
                path: '/account/center/applications',
                component: './Account/Center/Applications',
              },
              {
                path: '/account/center/projects',
                component: './Account/Center/Projects',
              },
            ],
          },
          {
            path: '/account/settings',
            name: 'settings',
            component: './Account/Settings/Info',
            routes: [
              {
                path: '/account/settings',
                redirect: '/account/settings/base',
              },
              {
                path: '/account/settings/base',
                component: './Account/Settings/BaseView',
              },
              {
                path: '/account/settings/security',
                component: './Account/Settings/SecurityView',
              },
              {
                path: '/account/settings/binding',
                component: './Account/Settings/BindingView',
              },
              {
                path: '/account/settings/notification',
                component: './Account/Settings/NotificationView',
              },
            ],
          },
        ],
      },
      {
        name: 'editor',
        icon: 'highlight',
        path: '/editor',
        hideInMenu: true,
        routes: [
          {
            path: '/editor/flow',
            name: 'flow',
            component: './Editor/GGEditor/Flow',
          },
          {
            path: '/editor/mind',
            name: 'mind',
            component: './Editor/GGEditor/Mind',
          },
          {
            path: '/editor/koni',
            name: 'koni',
            component: './Editor/GGEditor/Koni',
          },
        ],
      },
      {
        name: 'exception',
        icon: 'warning',
        path: '/exception',
        hideInMenu: true,
        routes: [
          // exception
          {
            path: '/exception/403',
            name: 'not-permission',
            component: './Exception/403',
          },
          {
            path: '/exception/404',
            name: 'not-find',
            component: './Exception/404',
          },
          {
            path: '/exception/500',
            name: 'server-error',
            component: './Exception/500',
          },
          {
            path: '/exception/trigger',
            name: 'trigger',
            hideInMenu: true,
            component: './Exception/TriggerException',
          },
        ],
      },


      //  system
      {
        name: 'system',
        icon: 'setting',
        path: '/system',
        routes: [
          {
            path: '/system/prouser',
            name: 'prouser',
            component: './system_prouser/ProUserList',
          },
          {
            path: '/system/proauthority',
            name: 'proauthority',
            component: './system_promenuauth/ProMenuAuthList',
          },
          {
            path: '/system/promenu',
            name: 'promenu',
            component: './system_promenu/ProMenuList',
          },
          {
            path: '/system/proorg',
            name: 'proorg',
            hideInMenu: true,
            component: './system_proorg/ProOrgList',
          },
          {
            path: '/system/prodept',
            name: 'prodept',
            component: './system_prodept/ProDeptList',
          },
          {
            path: '/system/propost',
            name: 'propost',
            component: './system_propost/ProPostList',
          },
          {
            path: '/system/prodictionarys',
            name: 'prodictionarys',
            component: './system_prodictionarys/ProDictionarysList',
          },
          {
            path: '/system/prooperlog',
            name: 'prooperlog',
            hideInMenu: true,
            component: './system_prooperlog/ProOperlogList',
          },
          {
            path: '/system/area',
            name: 'area',
            hideInMenu: true,
            component: './system_area/AreaList',
          },
          {
            path: '/system/tablecolumns',
            name: 'tablecolumns',
            hideInMenu: true,
            component: './system_protablecolumns/ProTableColumnsList',
          },
        ],
      },
      //staff
      {
        name: 'staff',
        icon: 'user',
        path: '/staff',
//      hideInMenu: true,
        routes: [
          {
            path: '/staff/staffinfo',
            name: 'staffinfo',
            component: './business_staffinfo/StaffInfoList',
          },
          {
            path: '/staff/newstaff',
            name: 'newstaff',
            hideInMenu: true,
            component: './business_staffinfo/StaffCreateForm',
          },
          {
            path: '/staff/updatestaff',
            name: 'updatestaff',
            hideInMenu: true,
            component: './business_staffinfo/StaffUpdateForm',
          },

        ],
      },
      //organ
      {
        name: 'organ',
        icon: 'apartment',
        path: '/organ',
//      hideInMenu: true,
        routes: [
          {
            path: '/organ/organinfo',
            name: 'organinfo',
            component: './business_organinfo/ProOrganList',
          },
          {
            path: '/organ/organtree',
            name: 'organtree',
            hideInMenu: true,
            component: './business_organinfo/OrganTree',
          },
        ],
      },
      //  auth
      {
        name: 'auth',
        icon: 'table',
        path: '/auth',
        hideInMenu: true,
        routes: [
          {
            path: '/auth/promenuauth',
            name: 'promenuauth',
            component: './system_promenuauth/ProMenuAuthList',
          },
          {
            path: '/auth/prouserauth',
            name: 'prouserauth',
            component: './system_prouserauth/ProUserAuthList',
          },
          {
            path: '/auth/prouserorgan',
            name: 'prouserorgan',
            component: './system_prouserorgan/ProUserOrganList',
          },

        ],
      },
      //警衔管理
      {
        name: 'policerank',
        icon: 'icon-zg-jxbz',
        path: '/policerank',
        routes: [
          {
            path: '/policerank/staffselect',
            name: 'staffselect',
            component: './policerank_staffselect/ProStaffSelectList',
          },
          {
            path: '/policerank/viewstaff',
            name: 'viewstaff',
            hideInMenu: true,
            component: './policerank_staffselect/StaffViewForm',
          },
          {
            path: '/policerank/receivesum',
            name: 'receivesum',
            component: './policerank_receivesum/ProReceiveSumList',
          },
          {
            path: '/policerank/datareport',
            name: 'datareport',
            component: './policerank_datareport/ProDataReportList',
          },
          {
            path: '/policerank/approve',
            name: 'approve',
            component: './policerank_approve/ProApproveList',
          },
          {
            path: '/policerank/standard',
            name: 'standard',
            routes: [
              {
                path: '/policerank/standard/standardset',
                name: 'standardset',
                component: './policerank_standardset/ProStandardSetList',
              },
              {
                path: '/policerank/standard/lawpolicy',
                name: 'lawpolicy',
                component: './policerank_lawpolicy/ProLawPolicyList',
              },
            ],
          },
		  {
		    path: '/policerank/compositesearch',
		    name: 'compositesearch',
		    routes: [
		      {
		        path: '/policerank/compositesearch/reportsearch',
		        name: 'reportsearch',
		        component: './policerank_reportsearch/ProReportSearchList',
		      },
		      {
		        path: '/policerank/compositesearch/checkedsearch',
		        name: 'checkedsearch',
		        component: './policerank_checkedsearch/ProCheckedSearchList',
		      },
		      {
		        path: '/policerank/compositesearch/commandsearch',
		        name: 'commandsearch',
		        component: './policerank_commandsearch/ProCommandSearchList',
		      },
		      {
		        path: '/policerank/compositesearch/personsearch',
		        name: 'personsearch',
		        component: './policerank_personsearch/ProPersonSearchList',
		      },
		    ],
		  },
		  {
		    path: '/policerank/staticanalysis',
		    name: 'staticanalysis',
		    routes: [
		      {
		        path: '/policerank/staticanalysis/reportstatic',
		        name: 'reportstatic',
		        component: './policerank_reportstatic/ProReportStaticList',
		      },
		      {
		        path: '/policerank/staticanalysis/checkstatic',
		        name: 'checkstatic',
		        component: './policerank_checkstatic/ProCheckStaticList',
		      },
		      {
		        path: '/policerank/staticanalysis/approvestatic',
		        name: 'approvestatic',
		        component: './policerank_approvestatic/ProApproveStaticList',
		      },
		    ],
		  },
        ],
      },

      {
        component: '404',
      },
    ],
  },
];
